import React, {Component} from 'react';

class Child extends Component {

	// state = {stus: [
	// 		{id:'1', name: '张三', age: 18},
	// 		{id:'2', name: '李四', age: 19},
	// 		{id:'3', name: '小明', age: 20},
	// 	]}
	state = {
		stus: "abc"
	}
	render() {

		return (
			<div>
				{this.state.stus.map(stu => {
					return <h4 key={stu.id}>姓名: {stu.name}, 年龄: {stu.age}</h4>
				})}
			</div>
		)
	}
}

export default Child;